# $Id: PKGBUILD 153519 2012-03-15 14:03:02Z heftig $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor:  <mathieu.clabaut@gmail.com>

pkgname=xdg-user-dirs
pkgver=0.14
pkgrel=3
pkgdesc="Manage user directories like ~/Desktop and ~/Music"
arch=('i686' 'x86_64')
depends=('sh')
url="http://www.freedesktop.org/wiki/Software/xdg-user-dirs"
license=('GPL')
backup=('etc/xdg/user-dirs.conf' 'etc/xdg/user-dirs.defaults')
source=(http://user-dirs.freedesktop.org/releases/$pkgname-$pkgver.tar.gz
        xdg-user-dirs)
sha256sums=('5f4e84f57c113f642ffdd646126855f45f1da955103119dbd2382edb516e6255'
            'f0f27de23d849b2fa4ebf59e448b5a843b577d14dc2c1070e228999091fa7f5e')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install 
  install -D ../xdg-user-dirs "$pkgdir/etc/X11/xinit/xinitrc.d/xdg-user-dirs"
}
